package com.hyc.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
@Slf4j
public class orderzkcontroller {
    @Resource
    private RestTemplate restTemplate;

    private final static String invoke_URL="http://cloud-provider-payment";

@GetMapping("/consumer/payment/zk")
    public String paymentinfo(){
    String result = restTemplate.getForObject(invoke_URL + "/payment/zk", String.class);
    return result;
    }

}
